﻿#ifndef MONITORDEVIDERITEM_H
#define MONITORDEVIDERITEM_H

#include <QWidget>

class MonitorDeviderItem : public QWidget
{
    Q_OBJECT

public:
    explicit MonitorDeviderItem(QWidget *parent = nullptr);

    bool selected() const;
    void setSelected(bool newSelected);

    bool fullScreen() const;
    void setFullScreen(bool newFullScreen);

signals:

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseDoubleClickEvent(QMouseEvent *event) override;
    void paintEvent(QPaintEvent *event) override;

private:
    bool mSelected;    // 当前选中小部件
    bool mFullScreen;  // 小部件全屏
};

#endif  // MONITORDEVIDERITEM_H
